﻿Public Partial Class Pzgl_PzRule_Select
    Inherits Mysoft.Map.Application.Security.AppPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Request.QueryString("CwztGUID") Is Nothing AndAlso Not Request.QueryString("CwztGUID") Is String.Empty AndAlso Not Request.QueryString("Application") Is Nothing AndAlso Not Request.QueryString("Application") Is String.Empty Then
            appGrid.CustomFilter = " OperTypeGUID not in (select OperTypeGUID from p_CwjkOperTypeRule where p_CwjkOperTypeRule.CwztGUID='" & Request.QueryString("CwztGUID") & "') and p_CwjkOperType.Application='" & Request.QueryString("Application") & "'"
        Else
            appGrid.CustomFilter = "(1=2)"
        End If
    End Sub

End Class